package com.mask.chapter01;

import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
     public static void main(String args[]) {
    try { 
    String s="ABCDE";
    byte b[]=s.getBytes();
    FileOutputStream file=new FileOutputStream("test.txt",true);

        file.write(b);
      file.close();
}
catch(IOException e) { 
System.out.println(e.toString());
}
}
}